package homework.day08.bean;

/**
 * @author ThinkBook
 */
public  class Rectangle extends Shape{
    private double length;
    private double wide;


    public Rectangle(String color,double length,double wide){
        super(color);
        this.length = length;
        this.wide = wide;
    }
    @Override
    public double area(){
        return length*wide;
    }
}
